export interface Other {
  code: number;
  msg: string;
  otherData?: never;
  count: number;
  rowId: never;
}

export interface Detail<T = any> extends Other {
  data: T;
}

export namespace createActivity {
  // 超值换购
  export interface IncreaseList {
    foodSpecId: number;
    activityPrice: string;
    limit: number;
    sort: number;
    id?: number;
    name: string;
  }
  export interface ExchangeRule {
    conditionType: number;
    conditionValue: string;
    selectType: number;
    selectIds: number[];
    inCreaseList: IncreaseList[];
    selectList?: any[];
  }
  export interface ExchangeDetail {
    path: string;
    id?: number;
    name: string;
    code: string;
    type: number;
    desc: string;
    rule: ExchangeRule;
    cycleType: number;
    cycleValue: number[];
    validityRange: string[];
    promotionType: number;
  }
}
export namespace OtherInfo {
  // 超值换购
  export interface GetPartActivityList {
    corpId: number;
    createTime: string;
    grantId: number;
    id: number;
    mobile: string;
    name: null;
    number: string;
    prizeType: number;
    prizeValue: null;
    promotionId: number;
    pushTime: null;
    status: number;
    storeId: number;
    userId: number;
    userName: string;
  }
}

export namespace QuickMark {
  export interface CloudPrintDetail {
    downLoadList: { url: string; name: string }[];
    createCount: number;
    bindingCount: number;
    count: number;
    [key: string]: number | { url: string; name: string }[];
  }
}
